Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass cert and key to proxy agent for Apple Pay validation #3887

Merged

Conversation

marcotranchino
Copy link
Contributor

With the previous PRs[1][2], we have made some progress in communicating with Apple Pay via Axios and HttpsProxyAgent and we have tested that the validation is initiated correctly but then fails with the following message from Apple: Apple Pay Merchant ID not valid.

See screenshot in the second PR[2].

With this change, we are now passing the certificate and key to the Proxy Agent via additional options.

Further information in JIRA[3].

[1]
#3885

[2]
#3886

[3]
https://payments-platform.atlassian.net/browse/PP-12853

With the previous PRs[1][2], we have made some progress in communicating with
Apple Pay via Axios and HttpsProxyAgent and we have tested that the
validation is initiated correctly but then fails with the following message
from Apple: `Apple Pay Merchant ID not valid`.

See screenshot in the second PR[2].

With this change, we are now passing the certificate and key to the Proxy
Agent via additional options.

Further information in JIRA[3].

[1]
#3885

[2]
#3886

[3]
https://payments-platform.atlassian.net/browse/PP-12853
@marcotranchino marcotranchino merged commit f1df7ab into master Aug 2, 2024
10 of 11 checks passed
@marcotranchino marcotranchino deleted the pp-12853-new-changes-for-apple-pay-axios-saga branch August 2, 2024 16:08
marcotranchino added a commit that referenced this pull request Aug 5, 2024
…axios

With the previous PRs[1][2][3], we have made some progress in communicating
with Apple Pay via Axios and HttpsProxyAgent and we have tested that the
validation is initiated correctly but then fails with the following message:
`Apple Pay Merchant ID not valid`.

See screenshot in the second PR[2].

With this change, we are now creating the HttpsProxyAgent with just the proxy
URL as an argument for its constructor, passing it together with the
certificate and key to the HttpsAgent, as arguments for its constructor, and
then creating an `axios` instance, passing the HttpsAgent to it.

Further information in JIRA[3].

[1]
#3885

[2]
#3886

[3]
#3887

[4]
https://payments-platform.atlassian.net/browse/PP-12853
marcotranchino added a commit that referenced this pull request Aug 5, 2024
…axios

With the previous PRs[1][2][3], we have made some progress in communicating
with Apple Pay via Axios and HttpsProxyAgent and we have tested that the
validation is initiated correctly but then fails with the following message:
`Apple Pay Merchant ID not valid`.

See screenshot in the second PR[2].

With this change, we are now creating the HttpsProxyAgent with just the proxy
URL as an argument for its constructor, passing it together with the
certificate and key to the HttpsAgent, as arguments for its constructor, and
then creating an `axios` instance, passing the HttpsAgent to it.

Further information in JIRA[3].

[1]
#3885

[2]
#3886

[3]
#3887

[4]
https://payments-platform.atlassian.net/browse/PP-12853
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants